using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace engine.frmModel
{
    public partial class frmString : DevComponents.DotNetBar.Metro.MetroForm
    {
        public Fact goal;

        public frmString()
        {
            InitializeComponent();
        }

        public frmString(Fact _goal)
        {
            InitializeComponent();
            this.goal = _goal;
            this.label1.Text = this.goal.Key;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            goal.value = new tdhString();
            ((tdhString)goal.value).data = this.tbValue.Text.Trim();
            this.DialogResult = DialogResult.OK;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}